#include <iostream>
using namespace std;
int main()
{
	int n, i;
	double t, number;
	number = 0;
	cin >> n;
	for(i = 0; i < n; i++){
		cin >> t;
		number += t;
	}
	cout << "sum: " << number <<"\t mean: " << number / n << endl;
	return 0;
}